import {observable, action, toJS} from 'mobx';
import Apis from '../apis/Api';

export default class Test{
  @observable test = {
    content:'测试'
  }
  
  @action
  changeContent(content) {
    this.test = {...toJS(this.test), content:content};
  }
  getBaseInfo = () => {
    Apis.getBaseInfo().then((result) => {
      this.test = result;
    }).catch((error) => {
      console.log(error);
    });
  }
}